/** @type {import('next').NextConfig} */
const withAntdLess = require('next-with-less');
const nextConfig = {
    // output: 'export',//开启静态文件打包
    output: 'standalone',
    // assetPrefix:'',
    reactStrictMode: true,//true的话组件会执行两次 也就是useEffect不监听的情况下也会执行两次
    swcMinify: true,
    // lessLoaderOptions: {
    //     javascriptEnabled: true,
    // },
    // cssModules: true,
    images: {
        //远程图片的域名验证
        domains: ['res.ddddyres.com','res.sharkerr.com'],
        unoptimized:true,//禁用图像优化api
    },
	//https://www.nextjs.cn/docs/api-reference/next.config.js/rewrites
    // async rewrites(){
    //     return [
    //         {
    //             source: '/dataapi/:path*',
    //             destination: 'http://www.web2.com/dataapi/:path*',
    //         }
    //     ] 
    // }
}

module.exports = withAntdLess(nextConfig)
